import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    { path: '/', redirect: '/manager/home' },
    { path: '/manager', component: import('../views/Manager.vue'),
      children: [
        { path: 'home', component: import('../views/Home.vue') },
        { path: 'about', component: import('../views/About.vue') },
      ]
    }
  ],
})

export default router